#ifndef SAVEDGAMESLIST_H
#define SAVEDGAMESLIST_H

#include <QList>
#include <QFile>
#include <QDebug>
#include"savedgame.h"

class SavedGamesList
{
public:
    SavedGamesList();

    SavedGame *getSavedGameAt(int pos);
    int getCount();

    int addSavedGame(QString savedName, QStringList &levels, int levelPos);
    int replaceSavedGame(int pos, QString savedName, QStringList &levels, int levelPos);
    int removeSavedGame(int pos);
    void writeToFile(QString fileName);
    void readFromFile(QString fileName);

private:
    QList<SavedGame*> m_savedGames;
    QString savePath;
    int maxId;
};


#endif // SAVEDGAMESLIST_H
